* {
  padding: 0;
  margin: 0;
  box-sizing: border-box; }

html {
  height: 100%; }

body {
  height: 100%; }

#game {
  width: 100%;
  height: 100%;
  position: relative;
  border: 1px solid #000; }

#main {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -20vh; }

.row {
  width: 100%;
  height: 20vh;
  display: flex; }

.kuai {
  width: 25%;
  flex-grow: 1;
  height: 100%;
  border: 1px solid #222;
  border-left-width: 0;
  border-top-width: 0; }
  .kuai:last-of-type {
    border-right-width: 0; }

#fen {
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  font-size: 5vh;
  color: skyblue; }

.start {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 4vh; }

#index {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: skyblue; }
  #index h2 {
    font-size: 10vh;
    text-align: center;
    padding-top: 5vh;
    color: #fff; }
  #index .start {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 20vh;
    height: 20vh;
    border: 1vh solid #000;
    border-color: #999;
    border-radius: 4vh;
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 20vh; }

#gameover {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: deepskyblue;
  text-align: center;
  color: #fff;
  display: none; }
  #gameover h2 {
    font-size: 10vh;
    padding-top: 5vh; }
  #gameover .defen {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 100%;
    font-size: 8vh; }
  #gameover .newGame {
    position: absolute;
    bottom: 15vh;
    left: 0;
    font-size: 6vh;
    width: 100%; }
